# Maintainer : Rexct < rexct1 at gmail dot com >
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Paul Mattal <paul@archlinux.org>
# Contributor: Martin Kemp <mdkemp@elys.com>

pkgname=ethtool
pkgver=3.10
pkgrel=1
epoch=1
pkgdesc="Utility for controlling network drivers and hardware"
arch=('sh4')
url="http://www.kernel.org/pub/software/network/ethtool/"
license=('GPL')
depends=('glibc')
source=(http://www.kernel.org/pub/software/network/$pkgname/$pkgname-$pkgver.tar.xz)
md5sums=('d1930df6e70a5204e8154a9911992be4')

build() {
    cd $pkgname-$pkgver
    ./configure --prefix=/usr --mandir=/usr/share/man \
        --sbindir=/usr/bin
    make
}

package() {
    cd $pkgname-$pkgver
    make DESTDIR="$pkgdir" install
}